import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Modal } from 'antd'
import AdminEditUserForm from './_base/AdminEditUserForm'

class AdminEditUserInfoModal extends Component {
  constructor (props) {
    super(props)
  }

  render () {
    return (
      <div>
        <Modal title="编辑用户信息" visible={this.props.visible} footer={null} onCancel={this.props.handleCancel}>
          <AdminEditUserForm handleFinish={this.props.handleFinish}/>
        </Modal>
      </div>
    )
  }
}

AdminEditUserInfoModal.propTypes = {
  handleCancel: PropTypes.func.isRequired,
  visible: PropTypes.bool.isRequired
}

export default AdminEditUserInfoModal
